﻿@model NC.ViewModels.UserLogin
@{
    ViewBag.Title = "Log In";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container">
    <div class=" container">
        @if (ViewBag.SuccessActivation != null)
        {
        <div class="alert alert-success alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        @ViewBag.SuccessActivation
        </div>
        }
        else if (ViewBag.NotActivated!=null)
        {
        <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            @ViewBag.NotActivated
        </div>
        }
    <div class="login-form-section">
            <div class="login-content bounceIn" >
                @using (Html.BeginForm("ValidateLogIn", "LogIn", FormMethod.Post))
                {
                    <div class="section-title">
                        <h3>LogIn to your Account</h3>
                    </div>
                    <div class="textbox-wrap">
                        <div class="input-group">
                            <span class="input-group-addon glyphicon glyphicon-user "></span>
                                @Html.TextBoxFor(model => model.Email, new { @class = "form-control", @placeholder = "Email Id", @required = "required" })
                        </div>
                    </div>
                    <div class="textbox-wrap">
                        <div class="input-group">
                            <span class="input-group-addon glyphicon glyphicon-lock "></span>
                            @Html.PasswordFor(model => model.Password, new { @class = "form-control", @placeholder = "Password", @required = "required" })
                        </div>
                            @if(ViewBag.UError!=null)
                            {
                        <div class="alert alert-danger alert-dismissable">@ViewBag.UError</div>}
                    </div>
                    <div class="login-form-action clearfix">
                          
                        <button type="submit" class="btn btn-success pull-right blue-btn">LogIn &nbsp; <span class="glyphicon glyphicon-chevron-right"></span></button>
                    </div>
                }
            </div>               
            <div class="login-form-links link1"  style="-webkit-animation: 0.4s;">
                <h4 class="green">@Html.ActionLink("Forget Password?", "ResetPassword", "Account")</h4>
            </div>
        </div>
    </div>
</section>
</div>